package com.shwread.android.ui.customview;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.Button;

import com.shwread.android.qysw10000204.R;


public class CheckButton
        extends
        Button
{
	
	
	
	public CheckButton(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		init();
	}
	
	public CheckButton(Context context, AttributeSet attrs) {
		super(context, attrs);
		init();
	}
	
	public CheckButton(Context context) {
		super(context);
		init();
	}
	
	void init() {
		
	}
	
	public void setCanImportState() {
		
		setBackgroundResource(R.drawable.file_no_selected_inset_bg);
		setText("导入");
	}
	
	public void setHaveImportState() {
		setText("已导入");
		setPadding(0, 0, 0, 0);
		setBackgroundResource(R.drawable.file_selected_transparency_inset_bg);
		
	}
	
	
}
